.class public Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;
.super Landroid/widget/FrameLayout;
.source "IntroOutroTemplateView.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$e;
    }
.end annotation


# instance fields
.field private a:Landroid/widget/ImageView;

.field private b:Landroid/widget/FrameLayout;

.field private c:Landroid/widget/ImageView;

.field private d:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

.field private e:Les/cd$g;

.field private f:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/zc;",
            ">;"
        }
    .end annotation
.end field

.field public g:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$e;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 p1, 0x4

    .line 4
    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->b()V

    return-void
.end method

.method private a(FZ)F
    .locals 4

    .line 60
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getWidth()I

    move-result v0

    int-to-float v0, v0

    const/high16 v1, 0x44870000    # 1080.0f

    const/high16 v2, 0x44f00000    # 1920.0f

    if-eqz p2, :cond_0

    const/high16 v3, 0x44870000    # 1080.0f

    goto :goto_0

    :cond_0
    const/high16 v3, 0x44f00000    # 1920.0f

    :goto_0
    div-float/2addr v0, v3

    .line 61
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getHeight()I

    move-result v3

    int-to-float v3, v3

    if-eqz p2, :cond_1

    const/high16 v1, 0x44f00000    # 1920.0f

    :cond_1
    div-float/2addr v3, v1

    .line 62
    invoke-static {v0, v3}, Ljava/lang/Math;->min(FF)F

    move-result p2

    mul-float p1, p1, p2

    const/high16 p2, 0x40c00000    # 6.0f

    .line 63
    invoke-static {p2, p1}, Ljava/lang/Math;->max(FF)F

    move-result p1

    return p1
.end method

.method private a(I)I
    .locals 2

    const/16 v0, 0x11

    if-eqz p1, :cond_1

    const/4 v1, 0x1

    if-eq p1, v1, :cond_2

    const/4 v1, 0x2

    if-eq p1, v1, :cond_0

    goto :goto_0

    :cond_0
    const v0, 0x800005

    goto :goto_0

    :cond_1
    const v0, 0x800003

    :cond_2
    :goto_0
    return v0
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;)Les/cd$g;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->e:Les/cd$g;

    return-object p0
.end method

.method private a(Ljava/lang/String;)Ljava/lang/String;
    .locals 1

    const-string v0, "title"

    .line 82
    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 83
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    sget v0, Les/z4;->durec_edit_video_title:I

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    :cond_0
    const-string v0, "description"

    .line 84
    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 85
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    sget v0, Les/z4;->durec_edit_description:I

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    :cond_1
    const-string v0, "moreintro"

    .line 86
    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 87
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    sget v0, Les/z4;->durec_edit_video_maker:I

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    :cond_2
    const-string v0, "thanks"

    .line 88
    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 89
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    sget v0, Les/z4;->durec_edit_thanks:I

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    :cond_3
    const-string v0, "contact"

    .line 90
    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_4

    .line 91
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    sget v0, Les/z4;->durec_edit_contact:I

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    :cond_4
    const/4 p1, 0x0

    :goto_0
    return-object p1
.end method

.method private a(Landroid/graphics/Bitmap;)V
    .locals 1

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->b:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->removeAllViews()V

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;Les/cd$g;)V
    .locals 0

    .line 3
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->b(Les/cd$g;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .line 5
    invoke-direct {p0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .line 4
    invoke-direct {p0, p1, p2, p3}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Z)V
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2, p3, p4}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a(Ljava/lang/String;Ljava/util/List;Ljava/util/List;Z)V

    return-void
.end method

.method private a(Les/cd$g;)V
    .locals 2

    .line 12
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/bumptech/glide/c;->d(Landroid/content/Context;)Lcom/bumptech/glide/h;

    move-result-object v0

    iget-boolean v1, p1, Les/cd$g;->l:Z

    if-eqz v1, :cond_0

    iget-object v1, p1, Les/cd$g;->e:Ljava/lang/String;

    goto :goto_0

    :cond_0
    iget-object v1, p1, Les/cd$g;->d:Ljava/lang/String;

    :goto_0
    invoke-virtual {v0, v1}, Lcom/bumptech/glide/h;->a(Ljava/lang/String;)Lcom/bumptech/glide/g;

    move-result-object v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Lcom/bumptech/glide/g;->a(Landroid/widget/ImageView;)Les/w3;

    .line 13
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$a;

    invoke-direct {v0, p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$a;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;Les/cd$g;)V

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 6

    .line 73
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->f:Ljava/util/List;

    if-eqz v0, :cond_4

    .line 74
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_4

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/zc;

    .line 75
    iget-object v2, v1, Les/zc;->b:Ljava/lang/String;

    invoke-static {v2, p1}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 76
    iget-object v2, v1, Les/zc;->f:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    const/4 v4, 0x1

    if-eqz v3, :cond_2

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/yc;

    .line 77
    iget-object v5, v3, Les/yc;->a:Ljava/lang/String;

    invoke-static {v5, p2}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 78
    iput-boolean v4, v3, Les/yc;->g:Z

    .line 79
    :cond_2
    iget-object v1, v1, Les/zc;->g:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_3
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/yc;

    .line 80
    iget-object v3, v2, Les/yc;->a:Ljava/lang/String;

    invoke-static {v3, p2}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 81
    iput-boolean v4, v2, Les/yc;->g:Z

    goto :goto_0

    :cond_4
    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 5

    .line 64
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->f:Ljava/util/List;

    if-eqz v0, :cond_4

    .line 65
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_4

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/zc;

    .line 66
    iget-object v2, v1, Les/zc;->b:Ljava/lang/String;

    invoke-static {v2, p1}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 67
    iget-object v2, v1, Les/zc;->f:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_2

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/yc;

    .line 68
    iget-object v4, v3, Les/yc;->a:Ljava/lang/String;

    invoke-static {v4, p2}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 69
    iput-object p3, v3, Les/yc;->f:Ljava/lang/String;

    .line 70
    :cond_2
    iget-object v1, v1, Les/zc;->g:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_3
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/yc;

    .line 71
    iget-object v3, v2, Les/yc;->a:Ljava/lang/String;

    invoke-static {v3, p2}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 72
    iput-object p3, v2, Les/yc;->f:Ljava/lang/String;

    goto :goto_0

    :cond_4
    return-void
.end method

.method private a(Ljava/lang/String;Ljava/util/List;Ljava/util/List;Z)V
    .locals 16
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/List<",
            "Les/yc;",
            ">;",
            "Ljava/util/List<",
            "Les/yc;",
            ">;Z)V"
        }
    .end annotation

    move-object/from16 v6, p0

    move/from16 v7, p4

    if-eqz p2, :cond_a

    if-nez p3, :cond_0

    goto/16 :goto_7

    .line 14
    :cond_0
    invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getWidth()I

    move-result v0

    if-lez v0, :cond_a

    invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getHeight()I

    move-result v0

    if-gtz v0, :cond_1

    goto/16 :goto_7

    :cond_1
    if-eqz v7, :cond_2

    move-object/from16 v0, p3

    goto :goto_0

    :cond_2
    move-object/from16 v0, p2

    :goto_0
    if-eqz v7, :cond_3

    move-object/from16 v8, p2

    goto :goto_1

    :cond_3
    move-object/from16 v8, p3

    .line 15
    :goto_1
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v9

    :goto_2
    invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_a

    invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    move-object v10, v0

    check-cast v10, Les/yc;

    .line 16
    iget-boolean v0, v10, Les/yc;->g:Z

    if-eqz v0, :cond_4

    goto :goto_2

    .line 17
    :cond_4
    invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Les/y4;->durec_video_edit_intro_outro_closable_edit_text_panel:I

    iget-object v2, v6, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->b:Landroid/widget/FrameLayout;

    const/4 v11, 0x0

    invoke-virtual {v0, v1, v2, v11}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v12

    .line 18
    sget v0, Les/x4;->closable_edittext:I

    invoke-virtual {v12, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    move-object v13, v0

    check-cast v13, Landroid/widget/EditText;

    .line 19
    invoke-virtual {v13}, Landroid/widget/EditText;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    .line 20
    iget-object v1, v10, Les/yc;->c:Les/yc$a;

    iget v1, v1, Les/yc$a;->a:F

    invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getWidth()I

    move-result v2

    int-to-float v2, v2

    mul-float v1, v1, v2

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v1

    invoke-virtual {v0}, Landroid/widget/RelativeLayout$LayoutParams;->getMarginStart()I

    move-result v2

    add-int/2addr v1, v2

    .line 21
    invoke-virtual {v0}, Landroid/widget/RelativeLayout$LayoutParams;->getMarginEnd()I

    move-result v2

    add-int/2addr v1, v2

    .line 22
    iget-object v2, v10, Les/yc;->c:Les/yc$a;

    iget v2, v2, Les/yc$a;->c:F

    invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getWidth()I

    move-result v3

    int-to-float v3, v3

    mul-float v2, v2, v3

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v2

    invoke-virtual {v0}, Landroid/widget/RelativeLayout$LayoutParams;->getMarginStart()I

    move-result v3

    sub-int/2addr v2, v3

    .line 23
    iget-object v3, v10, Les/yc;->c:Les/yc$a;

    iget v3, v3, Les/yc$a;->b:F

    invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getHeight()I

    move-result v4

    int-to-float v4, v4

    mul-float v3, v3, v4

    invoke-static {v3}, Ljava/lang/Math;->round(F)I

    move-result v3

    iget v0, v0, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    sub-int/2addr v3, v0

    .line 24
    new-instance v14, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v0, -0x2

    invoke-direct {v14, v1, v0}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 25
    invoke-virtual {v14, v2, v3, v11, v11}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    .line 26
    invoke-virtual {v12, v14}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 27
    iget-object v0, v10, Les/yc;->d:Les/yc$b;

    iget v0, v0, Les/yc$b;->b:F

    .line 28
    invoke-direct {v6, v0, v7}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a(FZ)F

    move-result v0

    const/4 v15, 0x1

    .line 29
    invoke-virtual {v13, v15, v0}, Landroid/widget/EditText;->setTextSize(IF)V

    .line 30
    iget-object v0, v10, Les/yc;->d:Les/yc$b;

    iget v0, v0, Les/yc$b;->a:I

    invoke-direct {v6, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a(I)I

    move-result v0

    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setGravity(I)V

    .line 31
    :try_start_0
    iget-object v0, v10, Les/yc;->d:Les/yc$b;

    iget-object v0, v0, Les/yc$b;->c:Ljava/lang/String;

    invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v0

    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setTextColor(I)V

    .line 32
    iget-object v0, v10, Les/yc;->d:Les/yc$b;

    iget-object v0, v0, Les/yc$b;->c:Ljava/lang/String;

    invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v0

    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setHintTextColor(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_3

    :catch_0
    const/4 v0, -0x1

    .line 33
    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setTextColor(I)V

    .line 34
    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setHintTextColor(I)V

    .line 35
    :goto_3
    invoke-virtual {v13}, Landroid/widget/EditText;->getLineSpacingExtra()F

    move-result v0

    .line 36
    invoke-virtual {v13}, Landroid/widget/EditText;->getLineSpacingMultiplier()F

    move-result v1

    iget-object v2, v10, Les/yc;->d:Les/yc$b;

    iget v2, v2, Les/yc$b;->d:F

    invoke-static {v1, v2}, Ljava/lang/Math;->max(FF)F

    move-result v1

    .line 37
    invoke-virtual {v13, v0, v1}, Landroid/widget/EditText;->setLineSpacing(FF)V

    .line 38
    iget-object v0, v10, Les/yc;->a:Ljava/lang/String;

    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setTag(Ljava/lang/Object;)V

    .line 39
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$b;

    move-object/from16 v5, p1

    invoke-direct {v0, v6, v10, v8, v5}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$b;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;Les/yc;Ljava/util/List;Ljava/lang/String;)V

    invoke-virtual {v13, v0}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 40
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$c;

    invoke-direct {v0, v6, v10}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$c;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;Les/yc;)V

    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V

    .line 41
    iget-object v0, v10, Les/yc;->b:Ljava/lang/String;

    invoke-direct {v6, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->b(Ljava/lang/String;)Landroid/graphics/Typeface;

    move-result-object v0

    if-eqz v0, :cond_5

    .line 42
    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setTypeface(Landroid/graphics/Typeface;)V

    .line 43
    :cond_5
    sget v0, Les/x4;->closable_close_button:I

    invoke-virtual {v12, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    move-object v4, v0

    check-cast v4, Landroid/widget/ImageButton;

    .line 44
    new-instance v3, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$d;

    move-object v0, v3

    move-object/from16 v1, p0

    move-object v2, v12

    move-object v11, v3

    move-object v3, v10

    move-object v15, v4

    move-object v4, v8

    move-object/from16 v5, p1

    invoke-direct/range {v0 .. v5}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$d;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;Landroid/view/View;Les/yc;Ljava/util/List;Ljava/lang/String;)V

    invoke-virtual {v15, v11}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 45
    iget-object v0, v6, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->d:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

    sget-object v1, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;->EDITABLE:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

    if-ne v0, v1, :cond_7

    .line 46
    iget-object v0, v10, Les/yc;->f:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_6

    .line 47
    iget-object v0, v10, Les/yc;->a:Ljava/lang/String;

    invoke-direct {v6, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    goto :goto_4

    .line 48
    :cond_6
    iget-object v0, v10, Les/yc;->f:Ljava/lang/String;

    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 49
    :goto_4
    sget v0, Les/w4;->durec_intro_outro_edittext_bg_selector:I

    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setBackgroundResource(I)V

    const/4 v0, 0x1

    .line 50
    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setEnabled(Z)V

    const/4 v0, 0x0

    .line 51
    invoke-virtual {v15, v0}, Landroid/widget/ImageButton;->setVisibility(I)V

    goto :goto_6

    .line 52
    :cond_7
    sget-object v1, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;->READ_ONLY:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

    if-ne v0, v1, :cond_9

    .line 53
    iget-object v0, v10, Les/yc;->f:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_8

    const-string v0, ""

    .line 54
    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    goto :goto_5

    .line 55
    :cond_8
    iget-object v0, v10, Les/yc;->f:Ljava/lang/String;

    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :goto_5
    const/4 v0, 0x0

    .line 56
    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setBackgroundColor(I)V

    .line 57
    invoke-virtual {v13, v0}, Landroid/widget/EditText;->setEnabled(Z)V

    const/16 v0, 0x8

    .line 58
    invoke-virtual {v15, v0}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 59
    :cond_9
    :goto_6
    iget-object v0, v6, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->b:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v12, v14}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto/16 :goto_2

    :cond_a
    :goto_7
    return-void
.end method

.method private b(Ljava/lang/String;)Landroid/graphics/Typeface;
    .locals 2

    .line 20
    invoke-static {}, Les/ua;->d()Les/ua;

    move-result-object v0

    invoke-virtual {v0}, Les/ua;->b()Ljava/util/Map;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    if-eqz v0, :cond_0

    .line 21
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 22
    :try_start_0
    invoke-static {v0}, Landroid/graphics/Typeface;->createFromFile(Ljava/lang/String;)Landroid/graphics/Typeface;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    .line 23
    :catch_0
    invoke-static {}, Les/ua;->d()Les/ua;

    move-result-object v1

    invoke-virtual {v1}, Les/ua;->b()Ljava/util/Map;

    move-result-object v1

    invoke-interface {v1, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 24
    new-instance p1, Ljava/io/File;

    invoke-direct {p1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Ljava/io/File;->delete()Z

    :cond_0
    const/4 p1, 0x0

    return-object p1
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;)Landroid/widget/FrameLayout;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->b:Landroid/widget/FrameLayout;

    return-object p0
.end method

.method private b()V
    .locals 2

    .line 2
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    sget v1, Les/y4;->durec_video_edit_intro_outro_panel:I

    invoke-static {v0, v1, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    .line 3
    sget v0, Les/x4;->intro_outro_image:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a:Landroid/widget/ImageView;

    .line 4
    sget v0, Les/x4;->intro_outro_frame_container:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->b:Landroid/widget/FrameLayout;

    .line 5
    sget v0, Les/x4;->intro_outro_delete_icon:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->c:Landroid/widget/ImageView;

    .line 6
    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private b(Les/cd$g;)V
    .locals 8

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->f:Ljava/util/List;

    if-nez v0, :cond_0

    return-void

    .line 8
    :cond_0
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_1
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_8

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/zc;

    .line 9
    iget-object v2, v1, Les/zc;->b:Ljava/lang/String;

    iget-object v3, p1, Les/cd$g;->c:Ljava/lang/String;

    invoke-static {v2, v3}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_2

    goto :goto_0

    .line 10
    :cond_2
    iget-object v2, p1, Les/cd$g;->f:Ljava/util/List;

    if-eqz v2, :cond_5

    iget-object v3, v1, Les/zc;->f:Ljava/util/List;

    if-eqz v3, :cond_5

    .line 11
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_3
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_5

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/yc;

    .line 12
    iget-object v4, v1, Les/zc;->f:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :cond_4
    :goto_1
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_3

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/yc;

    .line 13
    iget-object v6, v3, Les/yc;->a:Ljava/lang/String;

    iget-object v7, v5, Les/yc;->a:Ljava/lang/String;

    invoke-static {v6, v7}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v6

    if-eqz v6, :cond_4

    .line 14
    iget-boolean v6, v3, Les/yc;->g:Z

    iput-boolean v6, v5, Les/yc;->g:Z

    goto :goto_1

    .line 15
    :cond_5
    iget-object v2, p1, Les/cd$g;->g:Ljava/util/List;

    if-eqz v2, :cond_1

    iget-object v3, v1, Les/zc;->g:Ljava/util/List;

    if-eqz v3, :cond_1

    .line 16
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_6
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/yc;

    .line 17
    iget-object v4, v1, Les/zc;->g:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :cond_7
    :goto_2
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_6

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/yc;

    .line 18
    iget-object v6, v3, Les/yc;->a:Ljava/lang/String;

    iget-object v7, v5, Les/yc;->a:Ljava/lang/String;

    invoke-static {v6, v7}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v6

    if-eqz v6, :cond_7

    .line 19
    iget-boolean v6, v3, Les/yc;->g:Z

    iput-boolean v6, v5, Les/yc;->g:Z

    goto :goto_2

    :cond_8
    return-void
.end method


# virtual methods
.method public a(II)Landroid/graphics/Bitmap;
    .locals 18

    move-object/from16 v0, p0

    move/from16 v1, p1

    move/from16 v2, p2

    .line 92
    iget-object v3, v0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->e:Les/cd$g;

    .line 93
    iget-object v4, v3, Les/cd$g;->c:Ljava/lang/String;

    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 94
    iget-object v1, v3, Les/cd$g;->i:Landroid/graphics/Bitmap;

    return-object v1

    .line 95
    :cond_0
    iget-boolean v4, v3, Les/cd$g;->l:Z

    if-eqz v4, :cond_1

    iget-object v4, v3, Les/cd$g;->e:Ljava/lang/String;

    goto :goto_0

    :cond_1
    iget-object v4, v3, Les/cd$g;->d:Ljava/lang/String;

    :goto_0
    mul-int v5, v1, v2

    .line 96
    invoke-static {v4, v5}, Lcom/esfile/screen/recorder/utils/d;->a(Ljava/lang/String;I)Landroid/graphics/Bitmap;

    move-result-object v4

    const/4 v5, 0x0

    if-nez v4, :cond_2

    return-object v5

    .line 97
    :cond_2
    sget-object v6, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v1, v2, v6}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v6

    .line 98
    new-instance v7, Landroid/graphics/Canvas;

    invoke-direct {v7, v6}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 99
    new-instance v8, Landroid/graphics/RectF;

    int-to-float v1, v1

    int-to-float v2, v2

    const/4 v9, 0x0

    invoke-direct {v8, v9, v9, v1, v2}, Landroid/graphics/RectF;-><init>(FFFF)V

    invoke-virtual {v7, v4, v5, v8, v5}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/RectF;Landroid/graphics/Paint;)V

    .line 100
    iget-boolean v4, v3, Les/cd$g;->l:Z

    .line 101
    iget-boolean v4, v3, Les/cd$g;->l:Z

    .line 102
    iget-boolean v4, v3, Les/cd$g;->l:Z

    if-eqz v4, :cond_3

    iget-object v4, v3, Les/cd$g;->g:Ljava/util/List;

    goto :goto_1

    :cond_3
    iget-object v4, v3, Les/cd$g;->f:Ljava/util/List;

    .line 103
    :goto_1
    invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :goto_2
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_9

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/yc;

    .line 104
    iget-boolean v8, v5, Les/yc;->g:Z

    if-eqz v8, :cond_4

    goto :goto_2

    .line 105
    :cond_4
    new-instance v11, Landroid/text/TextPaint;

    invoke-direct {v11}, Landroid/text/TextPaint;-><init>()V

    .line 106
    invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v8

    iget-object v9, v5, Les/yc;->d:Les/yc$b;

    iget v9, v9, Les/yc$b;->b:F

    iget-boolean v10, v3, Les/cd$g;->l:Z

    .line 107
    invoke-direct {v0, v9, v10}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a(FZ)F

    move-result v9

    .line 108
    invoke-static {v8, v9}, Lcom/esfile/screen/recorder/utils/g;->a(Landroid/content/Context;F)I

    move-result v8

    int-to-float v8, v8

    invoke-virtual {v11, v8}, Landroid/text/TextPaint;->setTextSize(F)V

    .line 109
    iget-object v8, v5, Les/yc;->d:Les/yc$b;

    iget-object v8, v8, Les/yc$b;->c:Ljava/lang/String;

    invoke-static {v8}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v8

    invoke-virtual {v11, v8}, Landroid/text/TextPaint;->setColor(I)V

    .line 110
    iget-object v8, v5, Les/yc;->b:Ljava/lang/String;

    invoke-direct {v0, v8}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->b(Ljava/lang/String;)Landroid/graphics/Typeface;

    move-result-object v8

    if-eqz v8, :cond_5

    .line 111
    invoke-virtual {v11, v8}, Landroid/text/TextPaint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    .line 112
    :cond_5
    iget-object v8, v5, Les/yc;->c:Les/yc$a;

    .line 113
    iget-object v9, v5, Les/yc;->d:Les/yc$b;

    iget v9, v9, Les/yc$b;->a:I

    if-eqz v9, :cond_8

    const/4 v10, 0x1

    if-eq v9, v10, :cond_7

    const/4 v10, 0x2

    if-eq v9, v10, :cond_6

    .line 114
    sget-object v9, Landroid/text/Layout$Alignment;->ALIGN_CENTER:Landroid/text/Layout$Alignment;

    goto :goto_3

    .line 115
    :cond_6
    sget-object v9, Landroid/text/Layout$Alignment;->ALIGN_OPPOSITE:Landroid/text/Layout$Alignment;

    goto :goto_3

    .line 116
    :cond_7
    sget-object v9, Landroid/text/Layout$Alignment;->ALIGN_CENTER:Landroid/text/Layout$Alignment;

    goto :goto_3

    .line 117
    :cond_8
    sget-object v9, Landroid/text/Layout$Alignment;->ALIGN_NORMAL:Landroid/text/Layout$Alignment;

    :goto_3
    move-object v13, v9

    .line 118
    new-instance v15, Landroid/text/StaticLayout;

    iget-object v10, v5, Les/yc;->f:Ljava/lang/String;

    iget v9, v8, Les/yc$a;->a:F

    mul-float v9, v9, v1

    float-to-int v12, v9

    const/high16 v14, 0x3f800000    # 1.0f

    iget-object v5, v5, Les/yc;->d:Les/yc$b;

    iget v5, v5, Les/yc$b;->d:F

    const/16 v16, 0x0

    move-object v9, v15

    move-object/from16 v17, v15

    move v15, v5

    invoke-direct/range {v9 .. v16}, Landroid/text/StaticLayout;-><init>(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V

    .line 119
    invoke-virtual {v7}, Landroid/graphics/Canvas;->save()I

    .line 120
    iget v5, v8, Les/yc$a;->c:F

    mul-float v5, v5, v1

    float-to-int v5, v5

    int-to-float v5, v5

    iget v8, v8, Les/yc$a;->b:F

    mul-float v8, v8, v2

    float-to-int v8, v8

    int-to-float v8, v8

    invoke-virtual {v7, v5, v8}, Landroid/graphics/Canvas;->translate(FF)V

    move-object/from16 v5, v17

    .line 121
    invoke-virtual {v5, v7}, Landroid/text/StaticLayout;->draw(Landroid/graphics/Canvas;)V

    .line 122
    invoke-virtual {v7}, Landroid/graphics/Canvas;->restore()V

    goto/16 :goto_2

    :cond_9
    return-object v6
.end method

.method public a()V
    .locals 2

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a:Landroid/widget/ImageView;

    const v1, 0x106000d

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->b:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->removeAllViews()V

    const/4 v0, 0x0

    .line 8
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->e:Les/cd$g;

    const/16 v0, 0x8

    .line 9
    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->setVisibility(I)V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->c:Landroid/widget/ImageView;

    if-ne p1, v0, :cond_0

    const/16 p1, 0x8

    .line 2
    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->g:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$e;

    if-eqz p1, :cond_0

    .line 4
    invoke-interface {p1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$e;->a(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;)V

    :cond_0
    return-void
.end method

.method protected onSizeChanged(IIII)V
    .locals 0

    .line 1
    invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/FrameLayout;->onSizeChanged(IIII)V

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->e:Les/cd$g;

    if-eqz p1, :cond_0

    .line 3
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->setIntroOutroInfo(Les/cd$g;)V

    :cond_0
    return-void
.end method

.method public setDisplayMode(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->d:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

    return-void
.end method

.method public setIntroOutroInfo(Les/cd$g;)V
    .locals 2
    .param p1    # Les/cd$g;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->e:Les/cd$g;

    .line 2
    iget-object v0, p1, Les/cd$g;->c:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 3
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a(Les/cd$g;)V

    goto :goto_0

    .line 4
    :cond_0
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/bumptech/glide/c;->d(Landroid/content/Context;)Lcom/bumptech/glide/h;

    move-result-object v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Lcom/bumptech/glide/h;->a(Landroid/view/View;)V

    .line 5
    iget-object p1, p1, Les/cd$g;->i:Landroid/graphics/Bitmap;

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a(Landroid/graphics/Bitmap;)V

    .line 6
    :goto_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->d:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

    sget-object v0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;->EDITABLE:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

    if-ne p1, v0, :cond_1

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->c:Landroid/widget/ImageView;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_1

    .line 8
    :cond_1
    sget-object v0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;->READ_ONLY:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

    if-ne p1, v0, :cond_2

    .line 9
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->c:Landroid/widget/ImageView;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    :cond_2
    :goto_1
    return-void
.end method

.method public setOnTemplateViewListener(Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$e;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->g:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c$e;

    return-void
.end method

.method public setPlayState(Z)V
    .locals 11

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->d:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

    sget-object v1, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;->READ_ONLY:Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/IntroOutroTemplateContainer$DisplayMode;

    if-ne v0, v1, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->c:Landroid/widget/ImageView;

    const/16 v1, 0x8

    const/4 v2, 0x0

    if-eqz p1, :cond_1

    const/16 v3, 0x8

    goto :goto_0

    :cond_1
    const/4 v3, 0x0

    :goto_0
    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->b:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getChildCount()I

    move-result v0

    if-gtz v0, :cond_2

    return-void

    :cond_2
    const/4 v3, 0x0

    :goto_1
    if-ge v3, v0, :cond_a

    .line 4
    iget-object v4, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->b:Landroid/widget/FrameLayout;

    invoke-virtual {v4, v3}, Landroid/widget/FrameLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    .line 5
    invoke-virtual {v4}, Landroid/view/View;->getId()I

    move-result v5

    sget v6, Les/x4;->frame_layout:I

    if-ne v5, v6, :cond_9

    .line 6
    check-cast v4, Landroid/widget/RelativeLayout;

    .line 7
    invoke-virtual {v4}, Landroid/widget/RelativeLayout;->getChildCount()I

    move-result v5

    const/4 v6, 0x0

    :goto_2
    if-ge v6, v5, :cond_9

    .line 8
    invoke-virtual {v4, v6}, Landroid/widget/RelativeLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v7

    const-string v8, ""

    if-nez p1, :cond_6

    .line 9
    invoke-virtual {v7}, Landroid/view/View;->getId()I

    move-result v9

    sget v10, Les/x4;->closable_edittext:I

    if-ne v9, v10, :cond_5

    .line 10
    check-cast v7, Landroid/widget/EditText;

    .line 11
    invoke-virtual {v7}, Landroid/widget/EditText;->getEditableText()Landroid/text/Editable;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v9

    .line 12
    invoke-static {v9}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v9

    if-eqz v9, :cond_4

    .line 13
    invoke-virtual {v7}, Landroid/widget/EditText;->isFocused()Z

    move-result v9

    if-eqz v9, :cond_3

    .line 14
    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    goto :goto_3

    .line 15
    :cond_3
    invoke-virtual {v7}, Landroid/widget/EditText;->getTag()Ljava/lang/Object;

    move-result-object v8

    invoke-static {v8}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v8

    invoke-direct {p0, v8}, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    .line 16
    :cond_4
    :goto_3
    sget v8, Les/w4;->durec_intro_outro_edittext_bg_selector:I

    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setBackgroundResource(I)V

    const/4 v8, 0x1

    .line 17
    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setEnabled(Z)V

    goto :goto_4

    .line 18
    :cond_5
    invoke-virtual {v7}, Landroid/view/View;->getId()I

    move-result v8

    sget v9, Les/x4;->closable_close_button:I

    if-ne v8, v9, :cond_8

    .line 19
    invoke-virtual {v7, v2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_4

    .line 20
    :cond_6
    invoke-virtual {v7}, Landroid/view/View;->getId()I

    move-result v9

    sget v10, Les/x4;->closable_edittext:I

    if-ne v9, v10, :cond_7

    .line 21
    check-cast v7, Landroid/widget/EditText;

    .line 22
    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    .line 23
    invoke-virtual {v7, v2}, Landroid/widget/EditText;->setBackgroundColor(I)V

    .line 24
    invoke-virtual {v7, v2}, Landroid/widget/EditText;->setEnabled(Z)V

    goto :goto_4

    .line 25
    :cond_7
    invoke-virtual {v7}, Landroid/view/View;->getId()I

    move-result v8

    sget v9, Les/x4;->closable_close_button:I

    if-ne v8, v9, :cond_8

    .line 26
    invoke-virtual {v7, v1}, Landroid/view/View;->setVisibility(I)V

    :cond_8
    :goto_4
    add-int/lit8 v6, v6, 0x1

    goto :goto_2

    :cond_9
    add-int/lit8 v3, v3, 0x1

    goto/16 :goto_1

    :cond_a
    return-void
.end method

.method public setTemplateInfoList(Ljava/util/List;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/zc;",
            ">;)V"
        }
    .end annotation

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/inoutro/c;->f:Ljava/util/List;

    return-void
.end method
